package cesar.example

class Person {

	static hasMany = [books: Book]

	String name
	String email
	String password	

    static constraints = {
    	name(blank: false)
    	email(blank: false, email: true)
    	password(blank: false, password: true)
    }
    
    public String toString() {
    	return name
    }    
}
